import request from '@/utils/request'
export default{
  saveCourseInfo(courseInfo) {
    return request({
      url: '/admin/edu/course/save-course-info',
      method: 'POST',
      data: courseInfo
    })
  },
  getCourseInfo(courseId) {
    return request({
      url: `/admin/edu/course/get-course-info/${courseId}`,
      method: 'get'
    })
  },
  updateCourseInfo(courseInfo, courseId) {
    return request({
      url: `/admin/edu/course/update-course-info/${courseId}`,
      method: 'PUT',
      data: courseInfo
    })
  },
  getPage(pageNum, pageSize) {
    return request({
      url: `/admin/edu/course/list/${pageNum}/${pageSize}`,
      method: 'GET'
    })
  }
}
